<?php
require_once(dirname(__FILE__).'/config.php');

if(!$cfg_ml->IsLogin())
	{
		include_once(dirname(__FILE__)."/templets/index-notlogin.htm");
	}


if($dopost=='')
{
	 
	 
$sql = "select * from #@__member where mid='".$cfg_ml->M_ID."' and mb='".$cfg_ml->M_LoginID."'";
$dsql->SetQuery($sql);
$dsql->Execute();
$row = $dsql->GetArray();
        $dpl = new DedeTemplate();
		$tpl = dirname(__FILE__)."/templets/edit_money.htm";
		$dpl->LoadTemplate($tpl);
		$dpl->display();
		
}
/*------------------------
function __Save()
------------------------*/
if($dopost=='save'){
	
		$query = "UPDATE `#@__member` set name='$real_name',mb='$real_mb',email='$real_mail',sex='$gender',birthday='$birthday',qq='$qq',tel='$phone',fax='$fax',dz='$user_address' WHERE mid='{$cfg_ml->M_ID}'";
		if(!$dsql->ExecuteNoneQuery($query))
		{
			ShowMsg("更新会员表时出错，请联系管理员！","javascript:;");
			exit();
		}else{
			ShowMsg('成功更新你的详细资料！','edit_my.php',0,5000);
	    exit();
		}
}
?>